<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
		<title>{% block page_title %}Page Title{% endblock %}</title>
		<link rel="stylesheet" href="/css/base.css"></link>
		<link rel="stylesheet" href="/css/web.css"></link>
		{% block extra_css %}{% endblock %}
	</head>
	<body>
		<div id="content">
			<div id="header">
			</div>
			{% block error_content %}
				{% if errors %}
				<div id="errors">
					{% for error in errors %}
					<p class="error">{{ error }}</p>
					{% endfor %}
				</div>
				{% endif %}
			{% endblock %}
			<div id="body">
				{% block body %}{% endblock %}
			</div>
			<div id="sidebar">
                {% block sidebar %}{% endblock %}
			</div>
			<div id="footer"></div>
		</div>
		<div id="offscreen">
		{% block offscreen %}{% endblock %}
		</div>
		{% if is_debug %}
		<div id="todo" class="debug-toggle">
			<a href="#">Show/Hide Todo List</a>
			<pre>{% include "../../TODO.txt" %}</pre>
		</div>
		<div id="debug" class="debug-toggle">
			<a href="#">Show/Hide Debug Info</a>
			<pre class="hidden">{% debug %}</pre>
		</div>
		{% endif %}
		<script type="text/javascript" src="js/jquery-1.3.1.js"></script>
		<script type="text/javascript" src="js/base.js"></script>
		{% block extra_javascript %}{% endblock %}
		{% if is_production %}
		<script type="text/javascript">
			var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
			document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
		</script>
		<script type="text/javascript">
			var pageTracker = _gat._getTracker("UA-XXXXXX-1");
			pageTracker._initData();
			pageTracker._trackPageview();
		</script>
		{% endif %}
	</body>
</html>
